<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>鼠标粘连现象模拟</title>
    <script src="../../js/jquery-3.4.1.js"></script>
</head>
<body>
<button id="simulation1">点击触发一个方法两次</button>
<script type="text/javascript">

    var simulationVal = 0;

    $(function () {
        $("#simulation1").click(function () {
            simulationEvent();
            simulationEvent();
        });
    })

    function simulationEvent() {
        simulationVal++;
        if (simulationVal > 1) {
            console.log("被returns", simulationVal);
            return;
        }
        console.log("正常", simulationVal);
    }

</script>
</body>
</html>